import http from '@/design/libs/request/request'
const BASE_URL = '/contract'

export default {
  // 获取列表数据
  list: data => http.post(BASE_URL + '/list', data),
  // 创建数据
  create: data => http.post(BASE_URL + '/create', data),
  // 获取数据
  fetch: (id) => http.post(BASE_URL + '/fetch/' + id),
  // 更新数据
  update: data => http.post(BASE_URL + '/update', data),
  // 删除单个
  delete: (id) => http.post(BASE_URL + '/delete/' + id),
  // 删除集合
  del: data => http.post(BASE_URL + '/delete', data),
  // 更新状态
  disable: data => http.post(BASE_URL + '/disable', data),
  // 排序数据
  sort: data => http.post(BASE_URL + '/sort', data),
  // 同步数据
  synchro: data => http.post(BASE_URL + '/synchro', data),
  // 人员信息
  applicant: data => http.post(BASE_URL + '/applicant', data),
  // led表单信息
  ledFormData: data => http.post(BASE_URL + '/ledformdata', data),
  // 下载合同
  download: (id) => http.download(BASE_URL + '/download/' + id),
  // 表单管理
  alllist: data => http.post(BASE_URL + '/alllist', data),
  // 扣款列表
  kklist: data => http.post(BASE_URL + '/kklist', data),
  // 广告单明细
  leddetails: data => http.post(BASE_URL + '/leddetails', data),
  // 美陈单明细
  popdetails: data => http.post(BASE_URL + '/popdetails', data),
  // 获取部门列表
  deptList: data => http.post(BASE_URL + '/deptList', data),
  // 获取厂商名称
  firmName: data => http.post(BASE_URL + '/firmName', data),
  // 获取部门信息
  deptInfo: data => http.post(BASE_URL + '/deptInfo', data),
  // 获取楼层列表
  floors: data => http.post(BASE_URL + '/floors', data),
  // 获取led类型
  ledTypes: data => http.post(BASE_URL + '/ledTypes', data),
  // 厂商合同信息
  fcInfos: data => http.post(BASE_URL + '/fcInfos', data),
  // 厂商合同信息(包含过期)
  allfcInfos: data => http.post(BASE_URL + '/allfcInfos', data),
  // 部门
  departments: data => http.post(BASE_URL + '/departments', data),
  // 合同列表
  contractlist: data => http.post(BASE_URL + '/contractlist', data),
  // 获取表单类型
  typenames: data => http.post(BASE_URL + '/typenames', data)
}
